package com.stream;


public class Order {
    private String orderId;    // 订单ID
    private String userId;     // 用户ID
    private double amount;     // 订单金额
    private String category;  // 商品类别

    public Order(String orderId, String userId, double amount, String category) {
        this.orderId = orderId;
        this.userId = userId;
        this.amount = amount;
        this.category = category;
    }

    public Order() {
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

}
